MACS 40700
University of Chicago
Overview first, zoom and filter, then details on demand
Seeing Theory: A visual introduction to probability and statistics
America’s Public Bible: Biblical Quotations in U.S. Newspapers
ggplot2 and ggvishtmlwidgetsplotlyplotly API librariesggplotly()ggplotly()ggplotly()ggplotly()# add vehicle labels to tooltips
p <- ggplot(mpg, aes(displ, hwy)) +
geom_point(aes(color = class, text = str_c(manufacturer, model, sep = " "))) +
geom_smooth()
ggplotly(p)ggplotly()ggplotly() objects## List of 8
## $ x :List of 9
## ..$ data :List of 3
## ..$ layout :List of 9
## ..$ config :List of 3
## ..$ source : chr "A"
## ..$ attrs :List of 3
## ..$ cur_data : chr "869f12b22a92"
## ..$ visdat :List of 3
## ..$ highlight:List of 6
## ..$ base_url : chr "https://plot.ly"
## ..- attr(*, "TOJSON_FUNC")=function (x, ...)
## $ width : NULL
## $ height : NULL
## $ sizingPolicy :List of 6
## ..$ defaultWidth : chr "100%"
## ..$ defaultHeight: num 400
## ..$ padding : NULL
## ..$ viewer :List of 6
## ..$ browser :List of 4
## ..$ knitr :List of 3
## $ dependencies :List of 3
## ..$ :List of 10
## .. ..- attr(*, "class")= chr "html_dependency"
## ..$ :List of 10
## .. ..- attr(*, "class")= chr "html_dependency"
## ..$ :List of 10
## .. ..- attr(*, "class")= chr "html_dependency"
## $ elementId : chr "869f4a1ea1a7"
## $ preRenderHook:function (p, registerFrames = TRUE)
## $ jsHooks :List of 1
## ..$ render:List of 1
## - attr(*, "class")= chr [1:2] "plotly" "htmlwidget"
## - attr(*, "package")= chr "plotly"